package com.cc.Test;

public class pp {
    //加法
    public static int sum(int n1, int n2) {
        return n1 + n2;
    }

    //减法
    public static int sub(int n1, int n2) {
        return n1 - n2;
    }

    //乘法
    public static int multiply(int n1, int n2) {
        return n1 * n2;
    }
        //除法
        public static int divide (int n1, int n2){
            return n1 / n2;
        }
        public static void main (String[]args){
//通过类名调用静态方法
            System.out.println("加法：" + pp.sum(10, 20));
            System.out.println("减油：" + pp.sub(30, 20));
            System.out.println("雕法: " + pp.multiply(15, 20));
            System.out.println("降法: " + pp.divide(100, 20));

        }
    }
